const userDao = require('../dao/users');

module.exports.insert = async function(user){
    return await userDao.insert(user);
}

module.exports.findByUsernameAndPwd = async function(user){
    return await userDao.findByUsernameAndPwd(user);
}

module.exports.findByUsername = async function(username){
    return await userDao.findByUsername(username);
}

module.exports.findById = async function(id){
    return await userDao.findById(id);
}
module.exports.update = async function(user){
    return await userDao.update(user);
}
